how to enable cloud messaging api leagacy